package com.hbu.common.TO.es;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @ProjectName: hbu-mall
 * @Package: com.hbu.common.TO.es
 * @ClassName: SkuEsModel
 * @Author: zxh
 * @Description:
 * @Date: 2022/12/4 21:31
 * @Version: 1.0
 */
@Data
@ToString
public class SkuEsModel implements Serializable {

    private Long skuId;

    private Long spuId;

    private String skuTitle;

    private BigDecimal skuPrice;

    private String skuImg;

    private Long saleCount;

    private Boolean hasStock;

    private Long hotScore;

    private Long brandId;

    private Long catalogId;

    private String brandName;

    private String brandImg;

    private String catalogName;

    private List<Attr> attrs;

    @Data
    public static class Attr {

        private Long attrId;

        private String attrName;

        private String attrValue;

    }

}
